package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_buyInfo")
public class BuyInfoBean {
    /**采购车详情id*/
    @TableId(value = "pk_buyInfoId", type = IdType.AUTO)
    private Integer buyInfoId;
    /**采购订单Id*/
    @TableField("fk_buyOrderId")
    private Integer buyOrderId;
    /**商品id*/
    @TableField("fk_productId")
    private String  productId;
    /**采购价*/
    @TableField("bi_inPrice")
    private Integer inPrice;
    /**采购数量*/
    @TableField("bi_num")
    private Integer num;
    /**在采购车订单详情中的产品*/
    @TableField(exist = false)
    private ProductBean productBeanInBuyInfo;
    /**在采购车订单详情中的采购订单*/
    @TableField(exist = false)
    private BuyOrderBean buyOrderBeanInBuyInfo;

    public BuyInfoBean() {
    }

    public BuyInfoBean(Integer buyOrderId, String productId, Integer inPrice, Integer num) {
        this.buyOrderId = buyOrderId;
        this.productId = productId;
        this.inPrice = inPrice;
        this.num = num;
    }

    public BuyInfoBean(Integer buyInfoId, Integer buyOrderId, String productId, Integer inPrice, Integer num) {
        this.buyInfoId = buyInfoId;
        this.buyOrderId = buyOrderId;
        this.productId = productId;
        this.inPrice = inPrice;
        this.num = num;
    }

    public Integer getBuyInfoId() {
        return buyInfoId;
    }

    public void setBuyInfoId(Integer buyInfoId) {
        this.buyInfoId = buyInfoId;
    }

    public Integer getBuyOrderId() {
        return buyOrderId;
    }

    public void setBuyOrderId(Integer buyOrderId) {
        this.buyOrderId = buyOrderId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getInPrice() {
        return inPrice;
    }

    public void setInPrice(Integer inPrice) {
        this.inPrice = inPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public ProductBean getProductBeanInBuyInfo() {
        return productBeanInBuyInfo;
    }

    public void setProductBeanInBuyInfo(ProductBean productBeanInBuyInfo) {
        this.productBeanInBuyInfo = productBeanInBuyInfo;
    }

    public BuyOrderBean getBuyOrderBeanInBuyInfo() {
        return buyOrderBeanInBuyInfo;
    }

    public void setBuyOrderBeanInBuyInfo(BuyOrderBean buyOrderBeanInBuyInfo) {
        this.buyOrderBeanInBuyInfo = buyOrderBeanInBuyInfo;
    }

    @Override
    public String toString() {
        return "BuyInfoBean{" +
                "buyInfoId=" + buyInfoId +
                ", buyOrderId=" + buyOrderId +
                ", productId=" + productId +
                ", inPrice=" + inPrice +
                ", num=" + num +
                ", productBeanInBuyInfo=" + productBeanInBuyInfo +
                ", buyOrderBeanInBuyInfo=" + buyOrderBeanInBuyInfo +
                '}'+"\n";
    }
}
